const http = require('http')
const Url = require('url')

const serve = http.createServer((req,res)=>{
    const method = req.method
    const url = req.url
    const heihei = JSON.stringify(Url.toString(url.split("?")[1]) ) 
    console.log(method+"--"+url+"heihei")
    res.end('hello,nodejs'+method+" "+url+" "+JSON.stringify(heihei))
})
serve.listen(5000,()=>{
    console.log("serve running 5000");
})